package com.feel.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.feel.api.domain.FUser;
import com.feel.utils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.feel.api.service.IFUserService;

/**
 * 用户Controller
 *
 * @author z
 * @date 2020-09-30
 */
@RestController
@RequestMapping("/f/user")
@Api(tags="用户接口",value = "用户接口")
public class FUserController  {
    @Autowired
    private IFUserService fUserService;

    /**
     * 查询用户列表
     */
    @GetMapping("/list")
    @ApiOperation("查询用户列表")
    public R<IPage<FUser>> list(FUser fUser)
    {
        IPage<FUser> list = fUserService.page(new Page<>(1, 10), new QueryWrapper<>());
        return R.ok(list);
    }



}
